package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.Department;

import java.util.List;

@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {
    List<Department> queryTheContentBasedOnTheId(@Param("deptId") String deptId);

    List<Department> selectDeptTree(Integer deptId);

    List<Department> selectDepartmentWithStructure(@Param("deptId") Integer deptId);
}